Foxit PDF RDK
|
Public Member Functions | |
GetBitmap () | |
Get the bitmap of current XFA widget. More... | |
GetDefaultValue () | |
Get the default value string. More... | |
GetHAlign () | |
Get text horizontal alignment. More... | |
GetIndex () | |
Get the index of XFA Widget in related XFA page. More... | |
GetName (type) | |
Get Widget name. More... | |
GetOptions () | |
Get options of a choice list or an Exclusion Group (for radion button only). More... | |
GetPresence () | |
Get the presence property of the XFA widget. More... | |
GetRect () | |
Get rectangle of XFA widget. More... | |
GetSignature () | |
Get the signature object from current XFA widget. More... | |
GetToolTip () | |
Get tooltip string. More... | |
GetType () | |
Get type of XFA widget. More... | |
GetVAlign () | |
Get text vertical alignment. More... | |
GetValue () | |
Get the value string. More... | |
GetXFAPage () | |
Get the related XFA page, to which current XFA widget belongs. More... | |
HasEdge (edge_pos) | |
Check if the edge for specified position exists. More... | |
IsChecked () | |
Check if current XFA widget is checked. More... | |
IsListBox () | |
Check whether the widget is listbox or not. More... | |
IsSupportMultiline () | |
Check whether the widget supports multiple lines. More... | |
IsSupportMultiSelect () | |
Check whether the widget supports multiple selections. More... | |
OnChar (input_char, flags) | |
Call this function when a character code is being input. More... | |
OnHitTest (point) | |
Call this function to do hit test for a specified point. More... | |
OnKeyDown (key_code, flags) | |
Call this function when key on the keyboard is down. More... | |
OnKeyUp (key_code, flags) | |
Call this function when key on the keyboard is up. More... | |
OnLButtonDoubleClick (point, flags) | |
Call this function when left mouse button is double-clicked . More... | |
OnLButtonDown (point, flags) | |
Call this function when left mouse button is down. More... | |
OnLButtonUp (point, flags) | |
Call this function when left mouse button is up. More... | |
OnMouseEnter () | |
Call this function when mouse enters current XFA widget. More... | |
OnMouseExit () | |
Call this function when mouse exits. More... | |
OnMouseMove (point, flags) | |
Call this function when mouse moves. More... | |
OnRButtonDown (point, flags) | |
Call this function when right mouse is down. More... | |
OnRButtonUp (point, flags) | |
Call this function when right button is up. More... | |
ResetData () | |
Reset XFA Widget Data. More... | |
SetCheckState (is_checked) | |
Set the checked state of the current XFA widget. More... | |
SetDefaultValue (value) | |
Set the default value string. More... | |
SetImage (image) | |
Set the image for current XFA widget. More... | |
SetValue (value) | |
Set the value string. More... | |
Static Public Member Functions | |
static static e_HitTestAreaUnknown static e_HitTestAreaClient static e_HitTestAreaTitleBar static e_HitTestAreaHyperLink static e_WidgetTypeBarcode static e_WidgetTypePushButton static e_WidgetTypeCheckButton static e_WidgetTypeArc static e_WidgetTypeDateTimeEdit static e_WidgetTypeNumericEdit static e_WidgetTypeSignature static e_WidgetTypeChoiceList static e_WidgetTypeImageEdit static e_WidgetTypeLine static e_WidgetTypePasswordEdit static e_WidgetTypeRadioButton static e_WidgetTypeRectangle static e_WidgetTypeTextEdit static e_WidgetTypeUnknown static e_WidgetTypeExclGroup static e_WidgetTypeImage static e_PresenceUnknown static e_PresenceVisible static e_PresenceHidden static e_PresenceInactive static e_PresenceInvisible static e_WidgetNameTypeField static e_WidgetNameTypeCaption static e_WidgetNameTypeFullName static e_WidgethAlignTypeCenter static e_WidgethAlignTypeJustify static e_WidgethAlignTypeJustifyAll static e_WidgethAlignTypeLeft static e_WidgethAlignTypeRadix static e_WidgethAlignTypeRight static e_WidgetvAlignTypeTop static e_WidgetvAlignTypeBottom static e_WidgetvAlignTypeMiddle static e_WidgetEdgePositionTop static e_WidgetEdgePositionRight static e_WidgetEdgePositionBottom e_WidgetEdgePositionLeft | IsEmpty () |
Enumeration for hit test area of XFA widget. More... | |
Class XFAWidget represents the XFA widget which is retrieved from XFA page object.
To access the menu of XFA widget, please construct a WidgetMenu object with XFAWidget object.
FoxitRDKNative.XFAWidget.GetBitmap | ( | ) |
Get the bitmap of current XFA widget.
Applicable only when the type of current XFA widget is XFAWidget.e_WidgetTypeImageEdit or XFAWidget.e_WidgetTypeImage. For types that are not applicable, this function will throw exception e_ErrUnsupported.
FoxitRDKNative.XFAWidget.GetDefaultValue | ( | ) |
Get the default value string.
FoxitRDKNative.XFAWidget.GetHAlign | ( | ) |
Get text horizontal alignment.
FoxitRDKNative.XFAWidget.GetIndex | ( | ) |
Get the index of XFA Widget in related XFA page.
FoxitRDKNative.XFAWidget.GetName | ( | type | ) |
Get Widget name.
[in] | type | Name type. Please refer to values starting from XFAWidget.e_WidgetNameTypeField and this should be one of these values. |
FoxitRDKNative.XFAWidget.GetOptions | ( | ) |
Get options of a choice list or an Exclusion Group (for radion button only).
Applicable for choice list and Exclusion Group (for radion button only). For types that are not applicable, this function will return an empty array.
FoxitRDKNative.XFAWidget.GetPresence | ( | ) |
Get the presence property of the XFA widget.
The presence property controls the participation of the associated object in different phases of processing.
FoxitRDKNative.XFAWidget.GetRect | ( | ) |
Get rectangle of XFA widget.
Widget rectangle is defined in XFA coordinate. XFA coordinate is defined as original point in left top, x-axis pointing to right and y-axis pointing down.
FoxitRDKNative.XFAWidget.GetSignature | ( | ) |
Get the signature object from current XFA widget.
Applicable only when current XFA widget represents a signature. For types that are not applicable, this function will throw exception e_ErrUnsupported.
FoxitRDKNative.XFAWidget.GetToolTip | ( | ) |
Get tooltip string.
FoxitRDKNative.XFAWidget.GetType | ( | ) |
Get type of XFA widget.
FoxitRDKNative.XFAWidget.GetVAlign | ( | ) |
Get text vertical alignment.
FoxitRDKNative.XFAWidget.GetValue | ( | ) |
Get the value string.
FoxitRDKNative.XFAWidget.GetXFAPage | ( | ) |
Get the related XFA page, to which current XFA widget belongs.
FoxitRDKNative.XFAWidget.HasEdge | ( | edge_pos | ) |
Check if the edge for specified position exists.
[in] | edge_pos | Edge position to specify which edge will be checked. Please refer to values starting from XFAWidget.e_WidgetEdgePositionTop and this should be one of these values. |
FoxitRDKNative.XFAWidget.IsChecked | ( | ) |
Check if current XFA widget is checked.
Applicable for check box or radio button as related XFA widget. For types that are not applicable, this function will return false.
|
static |
Enumeration for hit test area of XFA widget.
Values of this enumeration should be used alone.
Hit test area: Unknown.
Hit test area: Client.
Hit test area: Title Bar.
Hit test area: HyperLink.
Enumeration for the type of XFA widget.
Values of this enumeration should be used alone.
XFA widget type: barcode.
XFA widget type: push button.
XFA widget type: check button.
XFA widget type: arc.
XFA widget type: date time edit.
XFA widget type: numeric edit.
XFA widget type: signature.
XFA widget type: choice list.
XFA widget type: image edit.
XFA widget type: line.
XFA widget type: password edit.
XFA widget type: radio button.
XFA widget type: rectangle.
XFA widget type: text edit.
XFA widget type: unknown.
XFA widget type: Exclusion Group for radio button only.
XFA widget type: image.
Enumeration for presence attribute of XFA widget.
Values of this enumeration should be used alone.
The presence property controls the participation of the associated object in different phases of processing.
Presence property: Unknown.
Presence property: Visible. Participate in interaction, layout, and rendering.
Presence property: Hidden. Participate in interaction but not layout or rendering.
Presence property: Inactive. Do not participate in interaction, layout, or rendering.
Presence property: Invisible. Participate in interaction and layout but not rendering.
Enumeration for the type of XFA widget name.
Values of this enumeration should be used alone.
Name type: field name. Name in this type will be retrieved from XFA widget's name entry and this may an empty string.
Name type: caption name. Name in this type will be retrieved from caption entry.
Name type: full name.
Enumeration for the type of text horizontal alignment of XFA widget.
Values of this enumeration should be used alone.
Center the text horizontally within the available region.
Left-align the last line and spread-justify the rest.
Spread-justify all lines to fill the available region.
Align the text to the left edge of the available region.
Align the radix indicator.
Align the text to the right edge of the available region.
Enumeration for the type of text vertical alignment of XFA widget.
Values of this enumeration should be used alone.
Align the text to the top of the available region.
Align the text to the bottom of the available region.
Align the text so that it is centered between the top and bottom of the available region.
Enumeration for the positon of XFA widget edge position.
Values of this enumeration should be used alone.
Egde position: top.
Egde position: right.
Egde position: bottom.
Egde position: left.
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
FoxitRDKNative.XFAWidget.IsListBox | ( | ) |
Check whether the widget is listbox or not.
FoxitRDKNative.XFAWidget.IsSupportMultiline | ( | ) |
Check whether the widget supports multiple lines.
Only text edit widget which type is XFAWidget.e_WidgetTypeTextEdit supports multiple lines.
FoxitRDKNative.XFAWidget.IsSupportMultiSelect | ( | ) |
Check whether the widget supports multiple selections.
Only the list box widget supports multiline selections, Whose type is XFAWidget.e_WidgetTypeChoiceList and when the function call XFAWidget.IsListBox returns true.
FoxitRDKNative.XFAWidget.OnChar | ( | input_char | , |
flags | |||
) |
Call this function when a character code is being input.
[in] | input_char | A character code, in UTF16-LE encoding. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.OnHitTest | ( | point | ) |
Call this function to do hit test for a specified point.
[in] | point | A point to be tested. |
FoxitRDKNative.XFAWidget.OnKeyDown | ( | key_code | , |
flags | |||
) |
Call this function when key on the keyboard is down.
[in] | key_code | The key code. Please refer to values starting from Filler.e_VkeyUnknown and this should be one of these values. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.OnKeyUp | ( | key_code | , |
flags | |||
) |
Call this function when key on the keyboard is up.
[in] | key_code | The key code. Please refer to values starting from Filler.e_VkeyUnknown and this should be one of these values. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.OnLButtonDoubleClick | ( | point | , |
flags | |||
) |
Call this function when left mouse button is double-clicked .
[in] | point | A point where left mouse button is double-clicked in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.OnLButtonDown | ( | point | , |
flags | |||
) |
Call this function when left mouse button is down.
[in] | point | A point where left mouse button is down in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.OnLButtonUp | ( | point | , |
flags | |||
) |
Call this function when left mouse button is up.
[in] | point | A point where left mouse button is up in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.OnMouseEnter | ( | ) |
Call this function when mouse enters current XFA widget.
FoxitRDKNative.XFAWidget.OnMouseExit | ( | ) |
Call this function when mouse exits.
FoxitRDKNative.XFAWidget.OnMouseMove | ( | point | , |
flags | |||
) |
Call this function when mouse moves.
[in] | point | A point where left mouse button moves in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.OnRButtonDown | ( | point | , |
flags | |||
) |
Call this function when right mouse is down.
[in] | point | A point where right mouse button is down in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.OnRButtonUp | ( | point | , |
flags | |||
) |
Call this function when right button is up.
[in] | point | A point where right mouse button is up in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FoxitRDKNative.XFAWidget.ResetData | ( | ) |
Reset XFA Widget Data.
FoxitRDKNative.XFAWidget.SetCheckState | ( | is_checked | ) |
Set the checked state of the current XFA widget.
Applicable for check box or radio button as related XFA widget. For types that are not applicable, this function will throw exception e_ErrUnsupported.
[in] | is_checked | true means the current XFA widget will be checked, while false means it will not be checked. |
FoxitRDKNative.XFAWidget.SetDefaultValue | ( | value | ) |
Set the default value string.
It is only useful for the XFA widget which type is XFAWidget.e_WidgetTypeTextEdit, XFAWidget.e_WidgetTypeNumericEdit, XFAWidget.e_WidgetTypePasswordEdit or XFAWidget.e_WidgetTypeDateTimeEdit.
[in] | value | A string as default value to be set. It can be an empty string. |
FoxitRDKNative.XFAWidget.SetImage | ( | image | ) |
Set the image for current XFA widget.
Applicable only when the type of current XFA widget is XFAWidget.e_WidgetTypeImageEdit. For types that are not applicable, this function will throw exception e_ErrUnsupported.
[in] | image | An image will be set to current XFA widget. Currently, this function only supports the following image types: If try to set rest unsupported image types, exception e_ErrUnsupported will be thrown. |
FoxitRDKNative.XFAWidget.SetValue | ( | value | ) |
Set the value string.
It is only useful for the XFA widget which type is XFAWidget.e_WidgetTypeTextEdit, XFAWidget.e_WidgetTypeNumericEdit, XFAWidget.e_WidgetTypePasswordEdit or XFAWidget.e_WidgetTypeDateTimeEdit.
[in] | value | A string as value to be set. It can be an empty string. |